//
//  CKCache.h
//  ConnectionKit
//
//  Created by Matthias Plappert on 30.06.09.
//  Copyright 2009 phapswebsolutions. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

#define kCKCacheOverallSize @"CKCacheOverallSize"

@interface CKCache : NSObject {
	NSMutableDictionary *_data;
}

+ (CKCache *)sharedCache;
+ (void)terminateOperationsWithMaximumCacheSize:(unsigned long long)maxSize;

- (BOOL)saveData:(NSData *)data forIdentifier:(NSString *)identifier;
- (BOOL)loadDataForIdentifier:(NSString *)identifier;
- (void)didReceiveMemoryWarning;

- (void)setData:(NSData *)data forIdentifier:(NSString *)identifier;
- (NSData *)dataForIdentifier:(NSString *)identifier;

@end
